package cn.exrick.xboot.modules.transport.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author gj
 */
@Data
@Accessors(chain = true)
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "b_third_party_insurance")
@TableName("b_third_party_insurance")
@ApiModel(value = "第三方保险对接表，记录与第三方保险的对接信息")
public class ThirdPartyInsurance extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关联的订单ID")
    private Long orderId;

    @ApiModelProperty(value = "保险对接状态，可选值：Ordered, Completed, Cancelled")
    private String insuranceStatus;

    @ApiModelProperty(value = "合作的保险公司名称")
    private String insuranceCompany;

    @ApiModelProperty(value = "保险单号")
    private String insurancePolicyNumber;

    @ApiModelProperty(value = "保险费用")
    private BigDecimal insuranceFee;

}